
// 一屏 和 二 屏  切换 按钮  添加hover效果
$('.goLeft').hover(function() {
	$(this).attr('src', 'images/bigLeft2.png')
}, function() {
	$(this).attr('src', 'images/bigLeft1.png')
})
$('.goRight').hover(function() {
	$(this).attr('src', 'images/bigRight2.png')
}, function() {
	$(this).attr('src', 'images/bigRight1.png')
})

//头部nav 添加hover效果
$(' header li').hover(function() {
	var index = $(this).index()
	switch(index) {
		case 0:
			$(this).css('color', '#ffe400').find('img').attr('src', 'images/head/f2.png');
			break;
		case 1:
			$(this).css('color', '#ffe400').find('img').attr('src', 'images/head/t2.png');
			break;
		default:
			$(this).css('color', '#ffe400').find('img').attr('src', 'images/head/c2.png');
			break;
	}
}, function() {
	var index = $(this).index()
	switch(index) {
		case 0:
			$(this).css('color', '#2ca1e7').find('img').attr('src', 'images/head/f1.png');
			break;
		case 1:
			$(this).css('color', '#2ca1e7').find('img').attr('src', 'images/head/t1.png');
			break;
		default:
			$(this).css('color', '#2ca1e7').find('img').attr('src', 'images/head/c1.png');
			break;
	}
})

//全屏
function fullScreen() {
	var el = document.documentElement;
	var rfs = el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullscreen;
	if(typeof rfs != "undefined" && rfs) {
		rfs.call(el);
	};
	return;
}
//退出全屏
function exitScreen() {
	if(document.exitFullscreen) {
		document.exitFullscreen();
	} else if(document.mozCancelFullScreen) {
		document.mozCancelFullScreen();
	} else if(document.webkitCancelFullScreen) {
		document.webkitCancelFullScreen();
	} else if(document.msExitFullscreen) {
		document.msExitFullscreen();
	}
	if(typeof cfs != "undefined" && cfs) {
		cfs.call(el);
	}
}
// 分公司 标题nav 添加hover效果
$('.company-nav li').hover(function() {
	$(this).css('color', '#ffe400')
}, function() {
    $(this).css('color', '#2ca1e7')
})
$('.comGoLeft').hover(function() {
    $(this).attr('src', 'images/companyImg/left_btn2.png')
}, function() {
    $(this).attr('src', 'images/companyImg/left_btn1.png')
})
$('.comGoRight').hover(function() {
    $(this).attr('src', 'images/companyImg/right_btn2.png')
}, function() {
    $(this).attr('src', 'images/companyImg/right_btn1.png')
})
